/*
 * @Author: Leo.wang wanglizhigs@163.com
 * @Date: 2023-12-06 20:58:49
 * @LastEditors: Leo.wang wanglizhigs@163.com
 * @LastEditTime: 2023-12-20 23:06:23
 * @FilePath: /tuberculosis_screening_display_system/vite.config.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import vueJsx from "@vitejs/plugin-vue-jsx";
import path from "path";
import { viteMockServe } from "vite-plugin-mock";

// https://vitejs.dev/config/
export default defineConfig({
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "src"),
    },
  },
  plugins: [
    vue(),
    vueJsx(),
    viteMockServe({
      mockPath: "./mock/",
      enable: true,
    }),
  ],
  css: {
    preprocessorOptions: {
      less: {
        modifyVars: {
          "table-bg": "red",
        },
        javascriptEnabled: true,
      },
    },
  },
});
